package com.weiyuwqj.controller.problem;

import com.weiyuwqj.api.common.Paginator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/11 0011.
 */
@Controller
public class ProblemController {

    /*@Autowired
    SysProblemService sysProblemService;
    @Autowired
    SysProblemTypeService sysProblemTypeService;

    @ResponseBody
    @RequestMapping(value = "/problem/typeList")
    public Object typeList(){

        return sysProblemTypeService.getAllProblemTypeList();
    }
    @ResponseBody
    @RequestMapping(value = "/problem/problemList")
    public Object problemList(Paginator paginator,Integer type,Integer recommend){
        Map map=new HashMap();
        map.put("type",type);
        map.put("recommend",recommend);
        return sysProblemService.getProblemList(paginator,map);
    }*/
}
